package com.abs;

public class Main {
	
	class UserImpl implements User.UserInterface{
		@Override
		public String getUserName() {
			return "userImpl ....";
		}
	}

/*	No enclosing instance of type User is accessible to invoke the super constructor. Must define a constructor and explicitly qualify its super constructor invocation 
	 with an instance of User (e.g. x.super() where x is an instance of User).*/
	class UserAbsImpl extends User.UserAbstract{
		
		@Override
		String getUserName() {
			return "user abstract";
		}
	}
	
	public static void main(String[] args) {
		Main main=new  Main();
		System.out.println(new User().name);
		System.out.println(main.new UserImpl().getUserName());
		System.out.println(main.new UserAbsImpl().getUserName());
	}
	
}
